<?php $this->beginContent('/layouts/main'); ?>
<!-- BEGIN LEFT  -->
<div id="left">
    <!-- .user-media -->
    <div class="media user-media hidden-phone">
        <a href="<?php echo url('admin/update', array('id' => user()->id)); ?>" class="user-link">
            <img src="<?php echo user()->getModel()->getAvatarUrl('small') ?>" alt="" class="media-object img-polaroid user-img" width="64" />
        </a>

        <div class="media-body hidden-tablet">
            <h5 class="media-heading"><?php echo h(user()->name) ?></h5>
            <ul class="unstyled user-info">
                <li><a href="<?php echo url('admin/update', array('id' => user()->id)); ?>">Employee</a></li>
                <li>Last Access : <br/>
                    <i class="icon-calendar"></i> <small><?php echo date('d M H:i') ?></small>
                </li>
            </ul>
        </div>
    </div>
    <!-- /.user-media -->

    <!-- BEGIN MAIN NAVIGATION -->

    <ul id="menu" class="unstyled accordion collapse in">
        <li class="accordion-group <?php echo $this->activeMenu == 'dashboard' ? 'active' : ''; ?>">
            <a href="<?php echo url('/dashboard/index') ?>">
                <i class="icon-dashboard icon-large"></i> Dashboard <span class="label label-inverse pull-right"></span>
            </a>
        </li>
        <li class="accordion-group <?php echo $this->activeMenu == 'order' ? 'active' : ''; ?>">
            <a href="<?php echo url('/ordermanager/index') ?>">
                <i class="icon-user icon-large"></i> Orders <span class="label label-inverse pull-right"></span>
            </a>
        </li>

        <li class="accordion-group <?php echo $this->activeMenu == 'report' ? 'active' : ''; ?>">
            <a data-parent="#menu" data-toggle="collapse" class="accordion-toggle" data-target="#report-nav">
                <i class="icon-book icon-large"></i> Messages <span class="label label-inverse pull-right">2</span>
            </a>
            <ul class="collapse " id="report-nav">
                <li><a href="<?php echo url('/report/index') ?>"><i class="icon-angle-right"></i>All messages</a></li>
                <li><a href="<?php echo url('/report/send') ?>"><i class="icon-angle-right"></i>Send</a></li>
            </ul>
        </li>
<!--        <li class="accordion-group <?php echo $this->activeMenu == 'contact' ? 'active' : ''; ?>">
            <a data-parent="#menu" data-toggle="collapse" class="accordion-toggle" data-target="#contact-nav">
                <i class="icon-envelope icon-large"></i> Contact <span class="label label-inverse pull-right">2</span>
            </a>
            <ul class="collapse " id="contact-nav">
                <li><a href="<?php echo url('/contactus/index') ?>"><i class="icon-angle-right"></i>All messages</a></li>
                <li><a href="<?php echo url('/contactus/send') ?>"><i class="icon-angle-right"></i>Send</a></li>
            </ul>
        </li>-->
    </ul>
    <!-- END MAIN NAVIGATION -->

</div>
<!-- END LEFT -->

<!-- BEGIN MAIN CONTENT -->
<div id="content">
    <!-- .outer -->
    <div class="container-fluid outer">
        <div class="row-fluid">
            <!-- .inner -->
            <div class="span12 inner">
                <?php echo $content ?>
            </div>
            <!-- /.inner -->
        </div>
        <!-- /.row-fluid -->
    </div>
    <!-- /.outer -->
</div>
<!-- END CONTENT -->
<?php $this->endContent(); ?>